package com.admin.mapper;

import com.admin.entity.AdminRole;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author marisheng
 * @since 2019-11-21
 */
public interface AdminRoleMapper extends BaseMapper<AdminRole> {

    IPage<Map> findRoleByAdmin(IPage iPage, @Param("text") String text);

    List<Map> findAllRole();
}
